package com.itheima.project.core.enums.file;

import com.itheima.project.basic.IBasicEnum;

/**
 * @ClassName AffixEnum.java
 * @Description TODO
 */
public enum FileEnum implements IBasicEnum {

    SUCCEED("200","操作成功"),
    FAIL("1000","操作失败"),
    DOWNLOAD_FAIL("21001", "下载文件失败"),
    UPLOAD_FAIL("21002", "上传文件失败"),
    SELECT_FILE_BUSINESSID_FAIL("21003", "查询业务对应附件失败"),
    DELETE_FILE_BUSINESSID_FAIL("21004", "删除业务对应附件失败"),
    PAGE_FAIL("21005", "查询附件列表失败"),
    DELETE_FAIL("21006", "删除附件失败"),
    SELECT_BUSUBBESSID_FAIL("21007", "查询附件所有业务ID失败"),
    BIND_FAIL("21008", "业务绑定文件失败"),
    FILE_NAME_NOTFOUND("21009", "上传文件名称为空"),
    BUCKET_NAME_NULL("21010", "存储空间名称为空"),
    STORE_FLAG_NULL("21011", "存储标识为空"),
    FILE_PREFIX_NOT_FOUND("21012", "文件路径前缀标识没找到"),
    FILE_OPERATE("21013", "操作文件数据失败"),
    FILE_DATA_LOSE("21014", "文件操作关键数据异常"),
    ;

    private String code;
    private String msg;

    FileEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
